package com.bto.solar.work.dto.lease;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 王小波
 * @description:
 * @date 2023/8/4 8:52
 */
@NoArgsConstructor
@Data
public class OperatingFarmGinsRes {

    @JsonProperty("type")
    private String type;
    @JsonProperty("message")
    private String message;
    @JsonProperty("businessKey")
    private String businessKey;
    @JsonProperty("cashflowList")
    private List<CashflowList> cashflowList;

    @NoArgsConstructor
    @Data
    public static class CashflowList {
        @JsonProperty("partnersContractNumber")
        private String partnersContractNumber;
        @JsonProperty("cfId")
        private Integer cfId;
        @JsonProperty("times")
        private String times;
        @JsonProperty("cfItem")
        private String cfItem;
        @JsonProperty("cfDirection")
        private String cfDirection;
        @JsonProperty("dueAmount")
        private Double dueAmount;
        @JsonProperty("dueDate")
        private String dueDate;
        @JsonProperty("receivedDate")
        private String receivedDate;
        @JsonProperty("receivedAmount")
        private Double receivedAmount;
        @JsonProperty("writeOffFlag")
        private String writeOffFlag;
    }
}
